<template>
    <div class="border-euqip"
        :style="{ 'top': shopdata.mouseposi.y + 40 + 'px', 'left': shopdata.mouseposi.x -1000+ 'px', 'box-shadow': shopdata.color }">

        <div class="first">
            <div class="img">
                <div class="out-box" :style="{ 'box-shadow': shopdata.color }">
                    <img :src="`/icons/myequip${shopdata.imgurladd}.png`" alt="">
                </div>
            </div>
            <div class="name-arae">
                <p :style="{ 'color': shopdata.fontcolor }">{{ shopdata.name }}</p>
            </div>
        </div>
      
       
            <div class="second">
            <div class="type">
                <p :style="{ 'color': shopdata.fontcolor }">{{ shopdata.qualityname }}</p>
                <p :style="{ 'color': shopdata.fontcolor }">{{ shopdata.type }}</p>
            </div>

            <div class="dps">
                <p :style="{ 'color': shopdata.fontcolor }">lv{{ shopdata.lv }}</p>
            </div>
            <div class="jichu" >
                <p v-for="(itemdmg, index) in shopdata.dmglist" :key="index">
                    <span v-for="(key, val) in itemdmg" :key="key">{{ val }}：{{ key }}</span>
                </p>
            </div>
            <div class="divider" >
                <el-divider />
            </div>
            <div class="citiao" >
                <p v-for="(item, index) in shopdata.extraList" :key="index">
                    <span v-for="(key, val) in item" :key="key">{{ val }}：{{ key }}</span>
                </p>
            </div>

           
        </div>
        <div class="divider" >
            <el-divider />
        </div>
        <div class="intro" >
            <p style="color:#ccc">{{ shopdata.intro }}</p>
        </div>
         <div class="divider">
            <el-divider />
        </div>
         <div class="price">
            <p>售价:{{shopdata.price*50}}金</p>
        </div>
        </div>
        <div>

        </div>
        

</template>

<script>
import { reactive, toRefs, defineComponent } from 'vue'

export default defineComponent(
    {
        props: {
            shopdata: Object
        },
        emits: [],
        setup(props) {
            return {

            }
        }
    }
)
</script>

<style lang="scss" scoped>
.border-euqip {
    position:   absolute;
    width: 250px;
    background: rgba(0, 0, 0, 0.808);
    border-radius: 12px;
    z-index: 3;
}

.first {
    display: flex;
    padding: 18px;
}

.img {
    width: 15%;
}

.name-arae {
    width: 85%;
}

.name-arae p {
    text-align: left;
    line-height: 45px;
    text-indent: 20px;
}

.out-box {
    border-radius: 8px;
    width: 45px;
    height: 45px;
    text-align: center;
}

.out-box img {
    //    margin-top: 5px;
    padding: 2px;
    width: 45px;
}

.el-divider--horizontal {
    margin: 0 auto;
    width: 90%;

}

.type {
    display: flex;
}

.type p {
    width: 50%;
    text-align: left;
    padding-top: 8px;
    // padding-bottom: 8px;
}

.type p:nth-child(1) {
    text-indent: 25px;
}

.type p:nth-child(2) {
    text-align: right;
    padding-right: 20px;
}

.intro {
    padding: 10px 0;
}

.intro p {
    // text-indent: 20px;
    padding: 3px 12px;
}

.dps p {
    padding-top: 2px;
    padding-bottom: 2px;
    padding-right: 20px;
    text-align: right;
}

.jichu p {
    text-align: left;
    text-indent: 24px;
    color: #fff;
    padding: 4px 0;
}

.citiao {
    padding-top: 8px;
    padding-bottom: 8px;
}

.citiao p {
    text-indent: 24px;
    color: rgb(52, 52, 228);
    padding: 4px 0;
    text-align: left;
}

.citiao {
    padding-bottom: 8px;
}
.hp{
    color: greenyellow;
     text-indent: 24px;
      padding-top: 8px;
    padding-bottom: 8px;
}
.price{
     
}
.price p{
    text-align: center;
    color: #fff;
    padding-top: 8px;
    padding-bottom: 8px;
   
}
</style>